Capture channel 2 configuration and enable
CAP2_EN | When set, capture on channel 2 is enabled |
CAP2_MODE | Edge of capture on channel 2 after prescaling. When bit0 is set to 1: enable capture on the negative edge, When bit1 is set to 1: enable capture on the positive edge. |
CAP2_PRESCALE | Value of prescaling on possitive edge of CAP2. Prescale value = PWM_CAP2_PRESCALE + 1 |
CAP2_IN_INVERT | when set, CAP2 form GPIO matrix is inverted before prescale |
CAP2_SW | Write 1 will trigger a software forced capture on channel 2 |